/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package DataMobil;

import DataPenyewa.DataPenyewa;
import java.sql.*;
import java.util.*;

/**
 *
 * @author Piyo
 */
public interface Intercar {

    DataMobil insert(DataMobil o) throws SQLException;

    void update(DataMobil o) throws SQLException;

    void delete(String o) throws SQLException;

    List<DataMobil> getAll() throws SQLException;

    List<DataMobil> getByNamaMobil(String nama) throws SQLException;

    List<DataMobil> getBymrek(String mrk) throws SQLException;

    List<DataMobil> getBywarna(String wrna) throws SQLException;

    DataMobil getByOne(String o) throws SQLException;

    DataPenyewa getByIdPenyewa(DataPenyewa id_penyewa) throws SQLException;

    DataMobil getByIdMobil(DataMobil id_mobil) throws SQLException;

    List<DataSewa> getJadwal(String tanggalSewa) throws SQLException;
    
    DataSewa getBynoTransaksi(DataSewa sewa) throws SQLException;
    
    void getBynotran(DataSewa s) throws SQLException;
    
     void updatestatus(DataMobil o) throws SQLException;
     
     void deletesewa(String sewa) throws SQLException;
     
     void insertakhr(DataSewa sewa) throws SQLException;
}
